﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Adapter.SISCONVE.Helper;
using ArtOfTest.WebAii.Core;
using ArtOfTest.WebAii.ObjectModel;

namespace Adapter.SISCONVE.Pages
{
    public class ConsultasPage : BasePage
    {
        private const string btnConsultas = "xpath=//*[@id='ctl00_btnConsultas_btnGISButton']";
        private const string btnSeguimientoMovil = "xpath=//*[@id='ctl00_btnConsultaEstadoMovilesReducida_btnGISButton']";
        private const string btnagregarTodos = "xpath=//*[@id='ctl00_ContentPlaceHolder2_btnIncluirTodos_btnGISButton']";
        private const string btnGenerarReporte = "xpath=//*[@id='ctl00_ContentPlaceHolder2_btnGenerar_btnGISButton']";
        private const string btnExcel = "xpath=//*[@id='ctl00_ContentPlaceHolder1_btnExportarExcel']";
        private const string btnLinkDescarga = "xpath=//*[@id='tdDescargar']/a";


        public ConsultasPage(Manager manager)
            : base(manager)
        {
        }

        public ConsultasPage()
        {
        }

        public void ClickButtonConsultas()
        {
            Click(btnConsultas);
        }

        public void ClickButtonSeguimientoMovil()
        {
            Click(btnSeguimientoMovil);
        }

        public void ClickButtonAgregarTodosVehiculos()
        {
            Click(btnagregarTodos);
        }
        public void ClickButtonGenerarReporte()
        {
            Click(btnGenerarReporte);
        }

        public void ClickButtonExcel()
        {
            Click(btnExcel);
        }

        public void ClickLinkDescarga()
        {
            Click(btnLinkDescarga);
        }
    }
}
